package com.yijiu.trb;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import cn.jpush.android.api.JPushInterface;

import com.yijiu.resource.CacheData;

public class MainActivity extends Activity
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		JPushInterface.init(getApplicationContext());
		if (CacheData.LOGIN_STATUS)
		{
			startActivity(new Intent(this, MainTabActivity.class));
		}
		else
		{
			startActivity(new Intent(this, SuggestProjectActivity.class));
		}
		finish();
	}
}
